package com.yiyuan.app.entity.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guaike.core.entity.annotation.DictConvert;
import com.guaike.core.entity.annotation.NumberAutoConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("赏金记录实体")
@Data
public class RecordPrizeVO implements Serializable {

    @ApiModelProperty("游戏房间名称")
    private String roomName;

    @ApiModelProperty("时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("房间类型（0：推币机，1：街机，2：娱乐）")
    @DictConvert(code = BusinessDictCodeConstant.ROOM_TYPE)
    private Integer roomType;

    @ApiModelProperty("截图路径")
    private String image;

    @ApiModelProperty("得奖分值（街机，娱乐有）")
    @NumberAutoConvert
    private Long prizeScore;

    @ApiModelProperty("中奖类型-ui图中的JP1那个字段")
    private String prizeType;

    @ApiModelProperty("得奖松果数")
    @NumberAutoConvert
    private Long prizePinecone;

    @ApiModelProperty("状态（0:待审批，1:已发放，2:审批不通过）")
    @DictConvert(code = BusinessDictCodeConstant.D_PRIZE_STATUS)
    private Integer status;
}
